package xyz.weizhi.rjwm.common;

/**
 * @Author milian
 * @Date 2021/9/25 0025 14:05
 */
public class baseContext {
    private static ThreadLocal<Long> ThreadLocal = new ThreadLocal<>();
    /**
     * @Author milian
     * @Description //设置值
     * @Date 14:11 2021/9/25 0025
     * @Param [id]
     * @return void
     **/
    public static void setThreadLocal(Long id){
        ThreadLocal.set(id);
    }
    /**
     * @Author milian
     * @Description //获取值
     * @Date 14:11 2021/9/25 0025
     * @Param []
     * @return java.lang.Long
     **/
    public static Long getThreadLocal(){
        return ThreadLocal.get();
    }
}
